{include file='layout/layout'}
<script src="__PUBLIC__/static/js/layer/laydate/laydate.js"></script>
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>账户管理</h3>
                <h5>资金查询及管理</h5>
            </div>
        </div>
    </div>
    <!-- 操作说明 -->
    <div id="explanation" class="explanation" style=" width: 99%; height: 100%;">
        <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span title="收起提示" id="explanationZoom" style="display: block;"></span>
        </div>
        <ul>
            <li>查看操作可以查看订单详情, 包括支付费用, 商品详情等</li>
            <li>未支付的订单可以取消</li>
            <li>用户收货后, 如果没有点击"确认收货",系统自动根据设置的时间自动收货.</li>
        </ul>
    </div>
    <div class="flexigrid">
        <div class="mDiv">
            <div class="ftitle">
                <h3>账户余额</h3>
            </div>

        </div>
        <div class="hDiv">
            <div class="hDivBox" id="ajax_return">
                <table cellspacing="0" cellpadding="0">
                    <thead>
                    <tr>
                        <th axis="col0">
                            <div style="width: 24px;"><i class="ico-check"></i></div>
                        </th>
                        <th abbr="order_sn" axis="col3" class="" align="left">
                            <div style="text-align: center; width: 60px;"  class="fa fa-dollar" >&<nbsp></nbsp>可用余额</div>
                        </th>
                        <th abbr="consignee" axis="col4" class="" align="left">
                            <div style="text-align: center; width: 80px;" class="">冻结金额</div>
                        </th>
                        <th abbr="article_show" axis="col5" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">账户状态</div>
                        </th>
                        <th abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">店铺名</div>
                        </th>
                        <th abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">商户账号</div>
                        </th>
                        <th abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">店主</div>
                        </th>

                        <th axis="col1" class="handle" align="left">
                          <div style="text-align: left; width: 80px;">操作</div>
                        </th>
                    </tr>
                    <tr data-order-id="1508" id="1508">
                        <th axis="col0">
                            <div style="width: 24px;"><i class="ico-check"></i></div>
                        </th>
                        <td abbr="order_sn" axis="col3" class="" align="left">
                            <div style="text-align: center; width: 60px;" class="">{$list2['sp_income_rest']}</div>
                        </td>
                        <td abbr="consignee" axis="col4" class="" align="left">
                            <div style="text-align: center; width: 80px;" class="">{$list2['sp_income_freeze']}</div>
                        </td>
                        <td abbr="article_show" axis="col5" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">
                                {switch  $list2["sp_status"]}
                                {case 1}正常{/case}
                                {case 2}禁用{/case}
                                {case 3}删除{/case}
                                {/switch}
                            </div>
                        </td>
                        <td abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">{$list2['sp_name']}</div>
                        </td>
                        <td abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">{$list2['sp_username']}</div>
                        </td>
                        <td abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">{$list2['sp_true_name']}</div>
                        </td>

                        <td axis="col1" class="handle" align="left">
                            <div style="text-align: left;width: 30px; ">
                                <a class="btn green" href="{:url('cash/requireCash')}"><i class="fa fa-list-alt"></i>提现</a>
                            </div>
                        </td>
                        <td style="width: 100%;">
                            <div></div>
                        </td>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>

        <div class="mDiv">
            <div class="ftitle">
                <h3>提现记录</h3>
                <h5>(共4条记录)</h5>
            </div>
            <div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
            <form class="navbar-form form-inline" method="post" action="{:url('cash')}">
                <div class="sDiv">
                    <div class="sDiv2">
                        <input size="30" id="add_time_begin" name="add_time_begin" {if isset($add_time_begin) } value="{$add_time_begin}" {/if} class="qsbox" placeholder="申请开始时间" type="text">
                    </div>
                    <div class="sDiv2">
                        <input size="30" id="add_time_end" name="add_time_end" {if isset($add_time_end) } value="{$add_time_end}" {/if} class="qsbox" placeholder="申请结束时间" type="text">
                    </div>
                    <div class="sDiv2">
                        <select name="ord_status" class="select sDiv3" style="margin-right:5px;margin-left:5px">
                            <option value=0 {if $status==0}selected="selected"{/if}>支付状态</option>
                            <option value=1 {if $status==1}selected="selected"{/if}>未转账</option>
                            <option value=2 {if $status==2}selected="selected"{/if}>已转账</option>
                        </select>
                    </div>
                    <div class="sDiv2">
                        <input id='button_search' class="btn" value="搜索" type="submit">
                    </div>
                </div>
            </form>
        </div>
        <div class="hDiv">
            <div class="hDivBox" id="ajax_return">
                <table cellspacing="0" cellpadding="0">
                    <thead>
                    <tr>
                        <th axis="col0">
                            <div style="width: 24px;"><i class="ico-check"></i></div>
                        </th>

                        <th abbr="consignee" axis="col4" class="" align="left">
                            <div style="text-align: center; width: 160px;" class="">时间</div>
                        </th>
                        <th abbr="consignee" axis="col4" class="" align="left">
                            <div style="text-align: center; width: 80px;" class="">金额</div>
                        </th>
                        <th abbr="article_show" axis="col5" class="" align="center">
                            <div style="text-align: center; width: 180px;" class="">订单号</div>
                        </th>
                        <th abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">支付状态</div>
                        </th>
                        <th abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">备注</div>
                        </th>


                    </tr>
                    {volist name="list" id='lt'}
                    <tr data-order-id="1508" id="1508">
                        <th axis="col0">
                            <div style="width: 24px;"><i class="ico-check"></i></div>
                        </th>
                        <td abbr="order_sn" axis="col3" class="" align="left">
                            <div style="text-align: center; width: 160px;" class="">{$lt['start_time']|date='Y-m-d H:i:s'}</div>
                        </td>
                        <td abbr="consignee" axis="col4" class="" align="left">
                            <div style="text-align: center; width: 80px;" class="">{$lt['money']}</div>
                        </td>
                        <td abbr="article_show" axis="col5" class="" align="center">
                            <div style="text-align: center; width: 180px;" class="">{$lt['c_order']}</div>
                        </td>
                        <td abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">
                                {switch $lt['sbank_status']}
                                {case 1}未转账{/case}
                                {case 2}已转账{/case}
                                {/switch}
                            </div>
                        </td>
                        <td abbr="article_time" axis="col6" class="" align="center">
                            <div style="text-align: center; width: 80px;" class="">
                                {switch $lt['c_status']}
                                {case -1}待审核{/case}
                                {case 1}审核成功{/case}
                                {case 2}审核失败{/case}
                                {case 3}无效作废{/case}
                                {/switch}
                            </div>
                        </td>

                        <td style="width: 100%;">
                            <div></div>
                        </td>
                    </tr>
                    {/volist}
                    </thead>
                </table>
            </div>
        </div>
        <!--分页位置-->

    </div>

</div>
</body></html>


<script type="text/javascript">
    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid > table>tbody >tr').click(function(){
            $(this).toggleClass('trSelected');
        });
        // 点击刷新数据
        $('.fa-refresh').click(function(){
            location.href = location.href;
        });
        laydate({
            elem: '#add_time_begin', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
            range: true
        });
        laydate({
            elem: '#add_time_end', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
            range: true,
        });

    });
</script>
